/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entidade;

import javax.ws.rs.core.Context;
import javax.ws.rs.core.UriInfo;
import javax.ws.rs.PathParam;
import javax.ws.rs.Consumes;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;

/**
 * REST Web Service
 *
 * @author Jesse
 */
@Path("Valida")
public class ValidaResource {

    @Context
    private UriInfo context;

    /**
     * Creates a new instance of ValidaResource
     */
    public ValidaResource() {
    }

    /**
     * Retrieves representation of an instance of Valida.ValidaResource
     * @return an instance of java.lang.String
     */
    @GET
    @Produces(MediaType.TEXT_PLAIN)
    @Path("/getText")
    public String getText(@QueryParam("nome") String nome) {
        //TODO return proper representation object
        return nome;
    }

    /**
     * PUT method for updating or creating an instance of ValidaResource
     * @param content representation for the resource
     * @return an HTTP response with content of the updated or created resource.
     */
    @PUT
    @Consumes("text/plain")
    public void putText(String content) {
    }
}
